package com.demo.passenger.sys.user.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.passenger.sys.user.entity.SysUserRole;
import com.demo.passenger.sys.user.mapper.SysUserRoleMapper;
import com.demo.passenger.sys.user.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weifucheng
 * @since 2019-07-13
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {
    @Override
    public List<SysUserRole> listByParams(Page<SysUserRole> page, SysUserRole SysUserRole) {
        return this.baseMapper.listByParams(page,SysUserRole);
    }
    @Override
    public List<SysUserRole> listByParams(SysUserRole SysUserRole) {
        Page<SysUserRole> page=new Page<SysUserRole>();
        page.setSize(Integer.MAX_VALUE);
        return this.baseMapper.listByParams(page,SysUserRole);
    }
}
